import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;

//@WebServlet(name="hello",urlPatterns={"/Serv1"})
public class Ch1Servlet extends HttpServlet {
	public void doGet(HttpServletRequest request, 
					HttpServletResponse response) throws IOException {
		PrintWriter out = response.getWriter();
		java.util.Date today = new java.util.Date();
		out.println("<html>" + 
					"<body>" + 
					"<h1 align=center>HF\'s Chapter1 Servlet</h1>" +
					"<br>" + today + "</body>" + "</html>"
					);
	}
	
/*	public static void main(String []argc) {
		HttpServletRequest request = new HttpServletRequest();
		HttpServletResponse response = new HttpServletResponse();
		
		Ch1Servlet ch1;
		ch1.doGet(request, response);
		
	}
*/
}